package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.AdSensitiveDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.pojos.wemedia.WmSensitive;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface WmSensitiveService extends IService<WmSensitive> {

    /**
     * 添加敏感词
     */

    ResponseResult saveSensitive(@RequestBody AdSensitiveDto adSensitiveDto);

    /**
     * 分页查询敏感词列表
     *
     * @param adSensitiveDto
     */
    ResponseResult listSensitive(@RequestBody AdSensitiveDto adSensitiveDto);

    /**
     * 删除敏感词
     */

    public ResponseResult delSensitive(@PathVariable("id") Integer id);

    /**
     * 修改敏感词
     */

    public ResponseResult updateSensitive(@RequestBody AdSensitiveDto adSensitiveDto);


}
